package epam.lab.spring.beanfactory;

import epam.lab.spring.parser.BeanDefinition;

/**
 * Interface for bean factories
 * @author Iurii Miedviediev
 * @version 1.0 Build 21.08.2014
 */
public interface BeanFactory{
    Object getBean(String string);
    <T extends Object> T getBean(String string, Class<T> type);
    void registerDefinition(String id, BeanDefinition beanDef);
}